package com.newki.sample

import android.os.Bundle

import androidx.appcompat.app.AppCompatActivity
import com.newki.nine_grid_view.NineGridLayout

class DemoActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_demo)


        val imgs = listOf("1", "2", "3", "4", "5")

        findViewById<NineGridLayout>(R.id.nine_grid).run {
            setSingleModeSize(400, 800)
            setAdapter(ImageNineGridAdapter(imgs))
        }


    }

}